package Aop;

import Aop2.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main2 {
    public static void main(String[] args) {

                ApplicationContext context =  new AnnotationConfigApplicationContext(SpringConfig.class);
                Aop2.UserService userService = context.getBean(UserService.class);
                userService.addUser();
                System.out.println("****************");
                userService.deleteUser();
                System.out.println("****************");
                userService.updateUser();
                System.out.println("****************");
                userService.queryUser();
            }


}
